-- GENERATED SPELL FOR [Lady Hoteshem] --


function spell0_15008(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15008', 590, 1)
end

function spell1_15008(pUnit, Event) --@Frightening Shout,n/a--
pUnit:FullCastSpellOnTarget(19134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15008', 6284, 1)
end

function spell2_15008(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15008', 5265, 1)
end

function spell3_15008(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_15008', 679, 1)
end

function spell4_15008(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_15008', 2000, 1)
end

function Sorts_15008(pUnit, Event)
local choix_sorts_15008 = math.random(0, 4)
if choix_sorts_15008 == 0 then
pUnit:RegisterEvent('spell0_15008', 1, 1)
end
if choix_sorts_15008 == 1 then
pUnit:RegisterEvent('spell1_15008', 1, 1)
end
if choix_sorts_15008 == 2 then
pUnit:RegisterEvent('spell2_15008', 1, 1)
end
if choix_sorts_15008 == 3 then
pUnit:RegisterEvent('spell3_15008', 1, 1)
end
if choix_sorts_15008 == 4 then
pUnit:RegisterEvent('spell4_15008', 1, 1)
end
end

function mob15008_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15008', math.random(1500, 3000), 1)
end

function mob15008_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15008_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15008_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15008, 1, 'mob15008_Action')
RegisterUnitEvent(15008, 2, 'mob15008_Leave')
RegisterUnitEvent(15008, 3, 'mob15008_Kill')
RegisterUnitEvent(15008, 4, 'mob15008_Die')
